﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Apps.IDAL
{
    public class DapperHelper
    {
        public static IDbConnection GetDb(string connStringName)
        {
            string connString = System.Configuration.ConfigurationManager.ConnectionStrings[connStringName].ConnectionString;
            IDbConnection dbConnection = new SqlConnection(connString);
            return dbConnection;
        }
        /// <summary>
        /// 业务库
        /// </summary>
        public static IDbConnection GetAppMall
        {
            get { return GetDb("App"); }
        }
        
    }
}
